package com.robot.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.robot.common.core.domain.Query;
import com.robot.common.core.tool.PageTransform;
import com.robot.system.domain.entity.SysUser;
import com.robot.system.mapper.SysUserMapper;
import com.robot.system.service.ISysUserService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @Description:TODO
 * @author:qzg
 * @Date:2020-12-04 11:28
 */
@Service
@AllArgsConstructor
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements ISysUserService {

    public void test(){
        System.out.println(baseMapper.selectList(null));
    }

    @Override
    public IPage<SysUser> list1() {
        Query query = new Query();
        query.setDescs("user_id");
        return this.page(PageTransform.getPage(query),null);
    }

    @Override
    public IPage<SysUser> getPage(IPage page, SysUser sysUser) {
        return baseMapper.selectPage(page,sysUser);
    }
}
